//
//  BasicInorDetialTableViewCell.m
//  marrymarry
//
//  Created by lsj on 16/9/22.
//  Copyright © 2016年 cf. All rights reserved.
//

#import "BasicInorDetialTableViewCell.h"

@implementation BasicInorDetialTableViewCell
-(UITextField *)myTextField
{
    if (!_myTextField) {
        _myTextField = [[UITextField alloc]initWithFrame:CGRectMake(116,10, ScreenWidth - 126, self.frame.size.height-20)];
        _myTextField.hidden = YES;
        [self addSubview:_myTextField];
    }
    return _myTextField;
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)loadTheViewWithArry:(NSArray *)SetArry andIndexPath:(NSIndexPath *)indexPath andDic:(NSMutableDictionary *)mydic andMyKeyArry:(NSMutableArray *)myKeyArry andIsOther:(BOOL)isGoToOther
{
   
    NSString *nbstr =[NSString stringWithFormat:@"%@",mydic[myKeyArry[indexPath.row]]];
    NSLog(@"%@",nbstr);
    if ( [nbstr isEqualToString:@"(null)"] || [nbstr isEqualToString:@""])
    {
        if (self.isGoToOther) {
            nbstr = @"未填写";
        }else{
        nbstr = @"请选择";
        }
    }
    if ([nbstr isEqualToString:@"1"]) {
        nbstr = @"已认证";
        self.writeLabel.textColor = RGB(255, 184, 85);
    }else if ([nbstr isEqualToString:@"0"])
    {
        nbstr = @"审核中";
        self.writeLabel.textColor = [UIColor lightGrayColor];
    }
    else if ([nbstr isEqualToString:@"2"])
    {
        nbstr = @"未认证";
        self.writeLabel.textColor = [UIColor redColor];
        
    }
    self.setTitleLabel.text = SetArry[indexPath.row];
    self.writeLabel.text = nbstr;
    self.writeLabel.adjustsFontSizeToFitWidth = YES;
    
}
@end
